package com.lin.cms.domain;

import java.io.Serializable;

public class GuestbookCtgDepartment implements Serializable {

	private static final long serialVersionUID = 1L;

	private int guestbookctgId;

	private int departId;

	public GuestbookCtgDepartment() {
	}

	public int getGuestbookctgId() {
		return guestbookctgId;
	}

	public void setGuestbookctgId(int guestbookctgId) {
		this.guestbookctgId = guestbookctgId;
	}

	public int getDepartId() {
		return departId;
	}

	public void setDepartId(int departId) {
		this.departId = departId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + departId;
		result = prime * result + guestbookctgId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final GuestbookCtgDepartment other = (GuestbookCtgDepartment) obj;
		if (departId != other.departId)
			return false;
		if (guestbookctgId != other.guestbookctgId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"departId=" + "'" + departId + "'" + ", " + 
			"guestbookctgId=" + "'" + guestbookctgId + "'" + 
			")";
	}
	
}
